﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infinity.Types.Ranges
{
	public class IntegerRange : Range<int>
	{
		public IntegerRange(int start = 0, int? end = null, int by = 1)
			: base(start, end)
		{
			By = by;
		}

		public override int Next(int value)
		{
			return value + By;
		}

		public int By { get; protected set; }
	}
}